package com.longqin.business.mapper;

import com.longqin.business.entity.BusProject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 项目管理 Mapper 接口
 * </p>
 *
 * @author longqin
 * @since 2025-01-21
 */
@Mapper
public interface BusProjectMapper extends BaseMapper<BusProject> {

	BusProject selectById(@Param("id") Integer id);

    List<BusProject> selectPage(@Param("projectName") String projectName, @Param("organizationId") Integer organizationId, @Param("startIndex") Integer startIndex, @Param("size") Integer size);
	
	int selectCount(@Param("projectName") String projectName, @Param("organizationId") Integer organizationId);
	
	int updateStatus(@Param("status") Integer status, @Param("id") Integer id);
	
	BusProject selectByWorkId(@Param("workId") Integer workId);
}
